# -*- coding: utf-8 -*-
# @Date：2024/7/21 15:29:04
# @Author：CJiaの青姝
# @FileName：urls
# @Editor：PyCharm2024
# @Remark：
from ninja.openapi.docs import Redoc
from utils.cj_auth import GlobalAuth
from utils.cj_ninja import CjNinjaAPI
from .router.router_v1 import system_router_v1
from utils.cj_error import handle_server_error

system_api_v1 = CjNinjaAPI(auth=GlobalAuth(), urls_namespace="system_api", version="1.0.0")

# 统一处理server异常
handle_server_error(system_api_v1)

system_api_v1.add_router("/", system_router_v1)
